home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / BOBOLI.ZIP / SRC / TIMER.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-27  |  677 b   |  25 lines

  1. /* TIMER functions.
  2.    Really a skeleton.  The timer procedure does nothing but set a flag that
  3.    one tick of the selected rate has passed, and keep track of how many such
  4.    ticks have occurred.  If you need to do more than that in your timer
  5.    function, then copy this file, and modify what the timer function does.
  6. */
  7. #include "mgraph.h"
  8.  
  9. #ifndef _timer_gogo
  10. #define _timer_gogo
  11.  
  12. #define _Timer_intr 8
  13. #define _PIT_freq   0x1234DD
  14.  
  15. extern byte timepassed,timetick;
  16. extern unsigned short clock_ticks;
  17. extern unsigned long counter;
  18.  
  19. void timer_init(byte Hz);
  20. void timer_exit(void);
  21. void qdelay(unsigned short time);
  22. char *get_cmostime(void);
  23.  
  24. #endif
  25.